package com.huawei.appgallery.updatemanager.ui.cardkit.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.foundation.ui.framework.widget.Space;
import com.huawei.appgallery.updatemanager.ui.cardkit.card.UpdateRecordCard;
import o.cdr;
import o.cgu;
import o.cih;
import o.czk$e;

public class UpdateRecordNode extends cdr {
    protected LayoutInflater ˊ;

    public UpdateRecordNode(Context context) {
        super(context, 1);
        this.ˊ = LayoutInflater.from(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(cgu.ˋ(), -1);
        LayoutParams layoutParams2 = new LinearLayout.LayoutParams(-1, -2);
        layoutParams2.weight = 1.0f;
        int ˏ = ˏ();
        for (int i = 0; i < ˏ; i++) {
            if (i != 0) {
                viewGroup.addView(new Space(this.ॱ), layoutParams);
            }
            View inflate = this.ˊ.inflate(czk$e.ʽ, null);
            cih updateRecordCard = new UpdateRecordCard(this.ॱ);
            updateRecordCard.ˏ(inflate);
            ˊ(updateRecordCard);
            viewGroup.addView(inflate, layoutParams2);
        }
        return true;
    }

    public boolean ˏॱ() {
        return false;
    }
}
